package com.example.design.shejimoshi.structure.compose;

/**
 * @Description TODO
 * @date 2022/10/25 14:47
 * @Author liuzhihui
 * @Version 1.0
 */
public class Employee extends HumanResource {
    public Employee(Long id, Double salary) {
        super(id);
        this.salary = salary;
    }

    @Override
    public double calculateSalary() {
        return salary;
    }
}
